package Day_11

import "fmt"

func main() {

	//go 1.18工作区模式
	var inChandd chan int
	inChandd = make(chan int, 3)

	inChandd <- 10
	inChandd <- 20
	inChandd <- 10
	//因为intChandd的容量为3，再存放会报告deadlock
	//inChandd <-50
	num1 := <-inChandd
	num2 := <-inChandd
	num3 := <-inChandd

	fmt.Printf("", num1, num2, num3)

}
